package com.glory.hikvisionmobile.adapter;

import android.view.View;
import android.widget.EditText;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.hikvisionmobile.R;
import com.glory.hikvisionmobile.base.App;
import com.glory.hikvisionmobile.bean.TrackOut.XPdaDieSortingAndDieBound;

import java.util.List;

public class DieBondSpecialAdapter extends BaseQuickAdapter<XPdaDieSortingAndDieBound, BaseViewHolder> {
    public DieBondSpecialAdapter(@Nullable List<XPdaDieSortingAndDieBound> data) {
        super(R.layout.adapter_param_list,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, XPdaDieSortingAndDieBound item) {
        EditText etPosition = helper.getView(R.id.etPosition);
        etPosition.setVisibility(View.GONE);
        helper.setText(R.id.tvItem1,item.getCarrierSeq());
        helper.setText(R.id.tvItem2,item.getCarrierId());
        helper.setGone(R.id.tvItem2,false);
        helper.setText(R.id.tvItem3,item.getTubeShellId());
        helper.setTextColor(R.id.tvItem3, App.app.getResources().getColor(R.color.free_ui_glory_theme_color));
        helper.setText(R.id.tvItem4,item.getCleanCarrierId());
        helper.setText(R.id.tvItem5,item.getCleanCarrierSeq());

    }

}
